Put pan.bat and Ptintern.exe in your cgi-bin folder.  You can modify Ptintern.bas with QBASIC or QuickBASIC.  I created the program in QuickBASIC 4.5.

Enjoy!
~ Andrew